package com.chooir;

import java.util.HashSet;
import java.util.Set;

import javax.ws.rs.core.Application;

import com.chooir.Exceptions.MyExceptionMapper;
import com.chooir.services.MyService;

public class MyApplication extends Application {
	private Set<Object> singletons = new HashSet<Object>();
	private Set<Class<?>> classes = new HashSet<Class<?>>();

	public MyApplication() {
		singletons.add(new MyService());
		classes.add(MyExceptionMapper.class);
	}

	@Override
	public Set<Class<?>> getClasses() {
		return classes;
	}

	@Override
	public Set<Object> getSingletons() {
		return singletons;
	}
}
